package com.cd2cd.code_template.util.vertify.service;


import com.cd2cd.code_template.code_template.domain.SysUser;
import com.cd2cd.code_template.configuration.exceptions.ServiceBusinessException;
import com.cd2cd.code_template.util.vertify.model.dto.UserValidateDto;
import com.cd2cd.code_template.util.vertify.model.vo.ImageVerificationVo;
import com.cd2cd.code_template.vo.BaseRes;

/**
 * description:  验证码业务处理类
 * version:  1.0
 * date: 2019/08/23 17:16
 * @author: YangXingfu
 */
public interface CaptchaService {

    /**
     *获取图片验证码
     * @param userValidateDto
     * @return
     */
    BaseRes<ImageVerificationVo> selectImageVerificationCode(UserValidateDto userValidateDto);

    /**
     * 获取用户TOTP密钥
     * @param userValidateDto
     * @return
     */
    BaseRes<String> genUserSecretKey(UserValidateDto userValidateDto);

    /**
     * 验证验证码是否有效
     * @param userValidateDto
     * @return
     */
    BaseRes<String> checkVerificationResult(UserValidateDto userValidateDto);
}
